package com.jyxd.web.data.basic;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

@Data
@TableName("table_med_order_handler_record")
public class MedOrderHandlerRecord {
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;
    private String visitCode;
    private String orderNumber;
    private String groupNumber;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dataTime;
    private Date createTime = new Date();
    @TableField("content")
    private String contentOfDoctorsAdvice;
    private String totalQuantity;
    private String remark;
    private String handleIdNumber;
    private String handleName;
    private String client;
}
